package com.zx.service;

import com.zx.dao.PrintText;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class print01 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("print.xml");
        PrintText c = (PrintText)context.getBean("aa");
        String content = "人之初，性本善。性相近，习相远。" +
                "苟不教，性乃迁。教之道，贵以专。" +
                "昔孟母，择邻处。子不学，断机杼。" +
                "窦燕山，有义方。教五子，名俱扬。" +
                "养不教，父之过。教不严，师之惰。" +
                "子不学，非所宜。幼不学，老何为。" +
                "玉不琢，不成器。人不学，不知义。" +
                "为人子，方少时。亲师友，习礼仪。" +
                "香九龄，能温席。孝于亲，所当执。" +
                "融四岁，能让梨，悌于长，宜先知。" +
                "首孝悌，次见闻。知某数，识某文。";
        c.print(content);
    }
}
